﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DNA.Mvc.Publishing
{
    public interface ICommentRepository:IRepository<Comment>
    {
        /// <summary>
        /// Get recent comments of specified category id
        /// </summary>
        ///<param name="categoryID">Specified the parent category id.</param>
        /// <param name="returnRows">Specified how many rows will return</param>
        /// <returns>A collection of comment</returns>
        IEnumerable<Comment> Recents(int categoryID, int returnRows);
    }
}
